﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using WalkingTec.Mvvm.Core;

namespace K9Nano.IM.Models
{
    public class ChatApp: PersistPoco
    {
        [Display(Name = "名称")]
        [Required(AllowEmptyStrings = false)]
        [StringLength(50, ErrorMessage = "{0}stringmax{1}")]
        public string Name { get; set; }

        [Display(Name = "秘钥")]
        [Required(AllowEmptyStrings = false)]
        [StringLength(50, ErrorMessage = "{0}stringmax{1}")]
        public string Secret { get; set; }

        [Display(Name = "客户信息地址")]
        [Required(AllowEmptyStrings = false)]
        [StringLength(200, ErrorMessage = "{0}stringmax{1}")]
        public string CustomerInfoCallback { get; set; }

        [Display(Name = "订单地址")]
        [Required(AllowEmptyStrings = false)]
        [StringLength(200, ErrorMessage = "{0}stringmax{1}")]
        public string CustomerOrderCallback { get; set; }
    }
}